package com.zx.zxapiinterface.controller;



import com.zx.zxapiinterface.model.User;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;

/**
 * 获取名字API
 * @author 张旭
 * @version 1.0
 */
@RestController
@RequestMapping("/name")
public class NameController {

    @PostMapping("/user")
    public String getUserNameByPost(@RequestBody User user){

        System.out.println("Post 你的用户名称是" + user.getUsername());
        return "Post 你的用户名称是" + user.getUsername();
    }
}
